package org.beanutopia.constraint;

import org.beanutopia.exception.InvalidValueException;
import org.beanutopia.Property;

/**
 * @author ymeymann
 * @since Apr 22, 2007 12:06:55 PM
 */
public interface Constraint<V> {//TODO corelate to com.google.common.collect.Constraint
  <T extends V> void validate(T value, Property<?, T> property) throws InvalidValueException;
}
